<?php

/**
 * JobRequest filter form.
 *
 * @package    maximous
 * @subpackage filter
 * @author     Mina.Gerges.Wadea
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class JobRequestFormFilter extends BaseJobRequestFormFilter
{

    public function configure()
    {
        $this->widgetSchema->setNameFormat('job_reqeust[%s]');
        $this->setWidget('statues', new sfWidgetFormChoice(array('choices'  => Job::$statues, 'expanded' => true,)));
        $this->setValidator('statues', new sfValidatorChoice(array('required' => false, 'choices'  => array_keys(Job::$statues))));
        $this->validatorSchema->setOption('allow_extra_fields', true);
        $this->disableCSRFProtection();
        $this->addFormatter('CustomFormatter');
    }

}
